<div class="main-content">
    <div class="section__content section__content--p20">
        <div class="container-fluid">
            <div class="row m-b-30">
                <div class="col-lg-12">
                    <div class="overview-wrap">
                        <h2 class="title-1">底部信息</h2>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="card">
                        <div class="card-header">
                            <strong>底部信息</strong>
                        </div>
                        <div class="card-body">
                            <form class="form-horizontal" role="form" name="form" id="form" method="post" action="index.php?r=admin/config/editemail"
                                  data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
                                  data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
                                  data-bv-feedbackicons-validating="glyphicon glyphicon-refresh"
                            >
                                <input type="hidden" name="YII_CSRF_TOKEN" value="<?php echo Yii::app()->request->csrfToken; ?>"/>
                                <input type="hidden" name="module" value="foot"/>

                                <div class="form-group">
                                    <label class=" form-control-label">版权信息</label>
                                    <input type="text" class="form-control" name="copyright" value="<?php echo $foot_array['copyright']['content']; ?>"  />
                                </div>

                                <div class="form-group">
                                    <label class=" form-control-label">地址邮编</label>
                                    <input type="text" class="form-control" name="postcode" value="<?php echo $foot_array['postcode']['content']; ?>"  />
                                </div>

                                <div class="form-group">
                                    <label class=" form-control-label">联系方式</label>
                                    <input type="text" class="form-control" name="contact" value="<?php echo $foot_array['contact']['content']; ?>" />
                                </div>

                                <div class="form-group">
                                    <label class=" form-control-label">第三方代码</label>
                                    <input type="text" class="form-control" name="othercode" value="<?php echo $foot_array['othercode']['content']; ?>" />
                                </div>

                                <div class="form-group">
                                    <label class=" form-control-label">底部其他信息</label>
                                    <textarea name="otherinfo" rows="3" class="form-control" >
                            <?php echo $foot_array['otherinfo']['content']; ?>
                        </textarea>
                                </div>

                                <div class="form-group">
                                    <button  type="submit" name="submit" id="submit" class="btn btn-primary btn-lg btn-block">保存</button>
                                </div>


                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function () {
        initPage();
    });
    function initPage() {
        $('#form').bootstrapValidator();
        $('#form').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (formData, jqForm, options) {
                return $('#form').data('bootstrapValidator').isValid();
            },
            success: function (res) {
                if (message(res)) {

                }
            }
        });
    }
    function enableForm() {
        $("input[name=submit]").removeProp("disabled");
    }
</script>